#include "instructionwidget.h"

instructionwidget::instructionwidget(QWidget *parent) : QWidget(parent)
{
    interface=new QLabel;
    QPixmap p2=QPixmap("3.png");
    interface->setPixmap(p2);
    instruction=new QLabel("要介绍的内容——",interface);
    instruction->setStyleSheet   ("background-color: transparent; border: none;font-family: 楷体; font-size: 30px; color: #F79253;");

    back=new QPushButton("返回",interface);
    back->setFixedSize(80,30);
    back->setStyleSheet("background-color: none; border: none;font-family: 楷体; font-size: 30px; color: #F33333;");
    int x=p2.width(),y=p2.height();
    back->move((x-100), y*0.75);
    connect(back,SIGNAL(clicked()),this,SLOT(close()));

    QVBoxLayout *mainbox=new QVBoxLayout,*box1=new QVBoxLayout;
    box1->addWidget(instruction);
    interface->setLayout(box1);
    mainbox->addWidget(interface);

    this->setLayout(mainbox);

}

instructionwidget::~instructionwidget()
{
}
